<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <title>{if mocod()=='index.main'}
	{conf index_title}
	{else}
	{echo ($this->Title != '') ? $this->Title.' - ' : (ini('cplace.cnpre.enabled') ? (logic('misc')->City('name').ini('settings.tuangou_str').' - ') : '')}{ini:settings.site_name}{conf page_title}
{/if}</title>
	<meta name="Keywords" content="{~ini('settings.'.(mocod()=='index.main'?'index_':'').'meta_keywords')}" />
<meta name="Description" content="{~ini('settings.'.(mocod()=='index.main'?'index_':'').'meta_description')}{if $__p = productCurrentView()},{echo strip_tags($__p['intro'])}{/if}" />
	<!-- css -->
	<!--{~ui('loader')->css('@pintuer')}-->
	<!--{~ui('loader')->css('common')}-->
	
	<!-- js -->
	<!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <!--{~ui('loader')->js('@respond')}-->
    <![endif]-->
	
	 {if false==DEBUG}
	{~ui('loader')->js('@error.clear')}
	{/if}
	 {~'<base h'.'ref="'.ini('settings.site_url').'/" />'}
    <link rel="shortcut icon" href="favicon.ico" />
</head>
<body>
<!-- head start -->
<!--[if lt IE 8]>
<div class="container margin-bottom">
<div class="alert alert-yellow"><span class="close"></span><strong>注意：</strong>您的浏览器版本过低,无法正常体验本站,请下载ie8或以上IE浏览器或者360,搜狗,猎豹等其他双核浏览器</a>。</div>
</div>
 <![endif]-->



	<div class="header-top ">
		<div class="container height-big">
			<div class="float-left">
				{eval $kf=ini('data.cservice')}
    	 	
             	   服务热线:<strong style="color: #C9033B;"> {$kf['phone']}</strong> 
			</div>
			<div class="float-right">
				<ul class="nav nav-menu nav-inline nav-navicon" id="nav-link1">
					<!--{if MEMBER_ID > 0}-->
	     			<li class="float-left">欢迎您，<font class="text-sub">{MEMBER_NAME}</font></li>
	     	 		{if $this->MemberHandler->HasPermission('index',"",1) === true}
		 	 		<li class="float-left"><a href="admin.php" target="_blank">管理后台</a></li>
		 	 		{/if}
		 	 		{if MEMBER_ROLE_ID==6}
		 	  		<li class="float-left text-little text-gray">|</li>
		 	  		<li class="float-left"><a href="?mod=seller">商家管理</a></li>
		 			{/if} 
		 			<li class="float-left text-little text-gray">|</li>
		 			<li class="float-left"><a href="#">我的{TUANGOU_STR}<span class="arrow"></span></a>
		 				<ul class="drop-menu">
			 				<li><a href="?mod=me&code=coupon">我的{TUANGOU_STR}券</a></li>
			  				<li><a href="?mod=me&code=order">我的订单</a></li>
			  				<li><a href="?mod=me&code=bill">收支明细</a></li>
			  				<li><a href="?mod=me&code=favorite">我的收藏</a></li>
			  				<li><a href="?mod=me&code=setting">账户设置</a></li>
			  				<li><a href="?mod=me&code=address">收货地址</a></li>
			  				<li><a href="?mod=recharge">账户充值</a></li>
			  				<li><a href="?mod=me&code=credit">我的积分</a></li>
		 				</ul>
		 			</li>
		 			<li class="float-left text-little text-gray">|</li>
		 			<li class="float-left"><a href="?mod=account&code=logout">退出</a></li>
					<!--{else}-->
					<li class="float-left">您好！欢迎您的到来。</li>
				    <li class="float-left"><a  href="?mod=account&code=register" >注册</a></li>
				    <li class="float-left text-little text-gray">|</li>
				    <li class="float-left"><a href="?mod=account&code=login">登录</a></li>
					<!--{/if}-->
				</ul>
			</div>
		</div>
</div>
   
   
<div class="container padding-top padding-bottom">
  		<div class="line">
		    <div class="xl12 xs12 xm3 xb3">
		  		<a class="x9" href="./"><img class="img-responsive" src="templates/xqw/images/logo.png" alt="行骑网"/></a> 
		  		<div class="x3 padding-big-top padding-left">
					<div class="current-city"><strong>{~logic('misc')->City('name')}</strong></div>
					<div class="qiehuan-city"><a class="city-info__toggle text-small text-sub"  href="/home/citylist">切换城市</a></div>
				</div>
		    </div>
		    <div class="xl12 xs12 xm6 xb6 xm1-move xb1-move padding-big-top search-box">
		    	<div class="form-group form-big">
		    		  <div class="field xl12 xs12 xm8 xb8">
     					 <div class="input-group">
       						 <div class="addbtn">
         						 <div class="button-group">
            						<button type="button" class="button dropdown-toggle" data-type="product" id="search-type" onclick="openxiala()">商品<span class="downward"></span></button>
           								 <ul class="drop-menu">
								              <li><a href="javascript:void(0)" onclick="front_search_select('product')">商品</a></li>
								              <li><a href="javascript:void(0)" onclick="front_search_select('seller')">商家</a></li>
            							</ul>
         						 </div>

        					</div>
        					<input type="text" class="input search-input" id="search-txt" name="w" size="50" value="{$kw}" {if $_GET['mod']=='seller'}placeholder="请输入商家名称"{else}placeholder="请输入商品名称"{/if} onkeyup="if (event.keyCode == 13) front_search_request();"/>
        					<span class="addbtn"><button type="button" onclick="front_search_request()" class="button search-button">搜索</button></span>
      					</div>
    				</div>
			   </div>
		   </div>
		   
		   <div class="xm2 xb2 hidden-l hidden-s" id="headererweima">
		   
			   <div class="qrcode" style="width:98px;height:76px;">
			  
			    <span class="close" onclick="header_closediv('headererweima');"></span>
			   	<img src="static/images/erweima.jpg" class="img-responsive img-border" alt="手机客户端" />
			   </div>
		   </div>
			    
			 
  		</div>
</div>

<div class="navbar container-layout bg-red">	
	<div class="container">	
	<button class="button icon-navicon margin-small-bottom" data-target="#site-nav"></button>	
		<div class="bg-red bg-inverse nav-navicon" id="site-nav">
			<ul class="nav nav-inline nav-menu clearfix">
				{loop $this->Config['__navs'] $i $nav}
<li><a href="{$nav['url']}" title="{$nav['title']}" target="{$nav['target']}" class="{$nav['class']}">{$nav['name']}</a>
{if $nav['url']=="http://mall.xq517.com"}
<img src="static/images/hot.gif" style="position:absolute;background:none;right:0px;top:-5px;">
{/if}
</li>
{/loop}			 	
						
			</ul>
		</div>
	</div>
</div>
<script type="text/javascript">

			var front_seller_base = "{echo logic('url')->create('seller', array('mod' => 'seller', 'kw' => 'xqw'))}";
			var front_product_base = "{echo logic('url')->create('search', array('mod'=>'search','kw' => 'xqw'))}";
			var front_search_base = "";
			function front_search_request(){
				front_search_select($('#search-type').data('type'));
				window.location = front_search_base.replace('xqw', encodeURIComponent($('#search-txt').val()));
			}
			function front_search_select(val){
				$(".open .drop-menu").css('display','none');
				//$("#search-type").removeClass('open');
				if(val=='product'){
					front_search_base = front_product_base;
					$('#search-txt').attr('placeholder','请输入商品名称等');
					$('#search-type').data('type','product');
					$('#search-type').html("商品 <span class='downward'></span>");
				}else{
					front_search_base = front_seller_base;
					$('#search-txt').attr('placeholder','请输入商家名称等');
					$('#search-type').data('type','seller');
					$('#search-type').html("商家 <span class='downward'></span>");
				}
				
			}
			function openxiala(){
				$(".open .drop-menu").css('display','block');
			}
</script>


<!-- head end -->

<!-- lunbo start -->

<!--{~logic('lunboad')->GetNewList()}-->

<!-- lunbo end -->

<!-- body start -->
<div class="body padding-top clearfix">
<!-- dianpu start -->

	<div class="container margin-big-bottom recommend-shop">
		<div class="line-middle">
		<div class="xl12 xs12 xm12 xb12 margin-big-bottom" ><img  src="templates/xqw/images/tjdp.jpg" class="img-responsive" alt="推荐店铺"></div>
		
		{loop $seller $k $item}
			{if $k>=8}
			{eval break;}
			{/if}
			  <div class="xl12 xs6 xm4 xb3 margin-bottom shop-list">
			    <div class="media border padding-small-bottom ">
			      <a href="?mod=seller&code=view&id={$item['id']}"><img {echo 'sr'.'c="'.ini('settings.site_url').'/static/images/1x1.gif"'}  data-original="{echo imager((int) $item['imgs'], IMG_Normal)}" class="lazy img-responsive" alt="{$item['name']}" width="286px" height="170px"></a>
			      <div class="media-body padding-small-right padding-small-left padding-small-bottom">
			     <h4><a href="?mod=seller&code=view&id={$item['id']}" class="" title="{$item['sellername']}" target="_blank"><strong>{$item['sellername']}</strong></a></h4>
			        <p class="address">地址:{eval echo cutstr(strip_tags({$item[selleraddress]}),56)}</p>
			         
			         
			      </div>
			      <div class="border-top dibu padding-small-right padding-small-left">
			      <p>电话:<span class="text-yellow"><strong>{$item[sellerphone]}</strong></span></p>
			      </div>
			    </div>
			  </div>
		{/loop}
		</div>
	</div>

<!-- dianpu end -->

<!-- temai start -->
	<div class="container margin-big-bottom temai">
		<div class="line-middle">
		<div class="xl12 xs12 xm12 xb12 margin-big-bottom" ><img src="templates/xqw/images/jrtm.jpg" class="img-responsive" alt="今日特卖"></div>
			{loop $product $k $item}
				{if $k>=8}
				{eval break;}
				{/if}
				<div class="xl12 xs6 xm4 xb3 margin-bottom">
			    <div class="media border">
			      <a href="?view={$item['id']}"><img {echo 'sr'.'c="'.ini('settings.site_url').'/static/images/1x1.gif"'} data-original="{echo imager($item['imgs'][0], IMG_Normal);}" class="lazy img-responsive" alt="{$item['name']}" width="286" height="190"></a>
			      <div class="media-body  padding-little-bottom">
			     <h4 class="padding-small-right padding-small-left"><a href="?view={$item['id']}" class="" title="{$item['name']}" target="_blank"><strong>{$item['flag']}</strong></a></h4>
			        <p class="intro text-gray padding-small-right padding-small-left">{eval echo cutstr(strip_tags($item['intro']),58)}</p>
			         
			          <p ><span class="xl6 xs6 xm8 xb8 text-gray text-small">{if $item['preprice']}{$item['pretext']}:{/if}¥<strong class="text-yellow text-big">{$item['nowprice']}</strong>&nbsp;门店价<del >¥{$item['price']}</del></span> <span class="xl6 xs6 xm4 xb4 text-small text-right"><a href="?view={$item['id']}"><button class="button button-little bg-yellow">去看看</button></a></span></p>
			      </div>
			      <div class="border-top dibu padding-small-right padding-small-left">
			      <p><span class="xl6 xs6 xm6 xb6 text-gray text-small">{if $item['preprice']}{TUANGOU_STR}价:¥<strong class="text-yellow text-default">{$item['preprice']}</strong>{/if}</span> <span class="xl6 xs6 xm6 xb6 text-gray text-small text-right"><strong class="text-yellow text-default">{$item['succ_buyers']}</strong>人已购买</span></p>
			      </div>
			    </div>
			  </div>
			
			
			{/loop}
		</div>
	</div>

<!-- temai end -->


<!-- floor start -->

	<!--{~logic('topic')->Get_ddc_list()}-->
	<!--{~logic('topic')->Get_kc_list()}-->
	<!--{~logic('topic')->Get_zxc_list()}-->
	
	<!--{~logic('topic')->Get_tc_list()}-->
	<!--{~logic('topic')->Get_ddqc_list()}--> 
	<!--{~logic('topic')->Get_pj_list()}--> 
<!-- floor end -->


</div>  
<!-- body end -->  

<!-- foot start -->
<div class="layout bg footer">
      <div class="container padding">
        <div class="line">
          <div class="hidden-l hidden-s xm2 xb2 border-right">
	          	<ul class="list-unstyle text-center">
					<li class="margin-bottom"><h3>商务合作</h3></li>
             	    <!--{if MEMBER_ROLE_ID!=6}--><li><a href="?mod=seller_join">申请成为商家</a></li><!--{/if}-->
					<li><a href="?mod=list&code=feedback">意见反馈</a></li>
					<li><a href="?mod=list&code=business">商务合作</a></li>
					<li><a href="?mod=openapi">开放 API</a></li>
				</ul>			
          </div>
           <div class="hidden-l hidden-s xm2 xb2 border-right">
	          	<ul class="list-unstyle text-center">
					 
                   <li class="margin-bottom"><h3>使用帮助</h3></li>
                   <li><a href="?mod=html&code=help">{TUANGOU_STR}指南</a></li>
				   <li><a href="?mod=html&code=faq">常见问题</a></li>
				   <li><a href="?mod=subscribe&code=mail">邮件订阅</a></li>
				   <li><a href="?mod=subscribe&code=sms">短信订阅</a></li>
				</ul>			
          </div>
           <div class="hidden-l hidden-s xm2 xb2 border-right">
	          	<div class="media-inline text-center">
	          		<div class="media media-y clearfix">
		    			<a href="#"><img src="/static/images/apperweima.png" ></a>
		
		 				<div class="media-body text-center">移动客户端</div>
	 				</div>
				</div>		
          </div>
           <div class="hidden-l hidden-s xm2 xb2 border-right">
	          	<div class="media-inline text-center">
	          		<div class="media media-y clearfix">
		    			<a href="#"><img src="/static/images/weixinerweima.jpg" ></a>
		
		 				<div class="media-body"><strong>行骑网官方微博</strong></div>
	 				</div>
				</div>			
          </div>
           <div class="hidden-l hidden-s xm2 xb2 border-right">
	          	<ul class="list-unstyle text-center">
					 <li class="margin-bottom"><h3>联系我们</h3></li>
                    	<li><a href="?mod=html&code=contact">联系我们</a></li>
						<li><a href="?mod=list&code=ask">在线问答</a></li>  
						<li><a href="?mod=html&code=yanzheng">商家验证流程</a></li>
						<li><a href="?mod=html&code=ruzhu">商家入驻申请表</a></li>
				</ul>			
          </div>
           <div class="hidden-l hidden-s xm2 xb2">
	          	<ul class="list-unstyle text-center">
					 <li class="margin-bottom"><h3>公司信息</h3></li>
                        <li><a href="?mod=html&code=about">关于我们</a></li>
						<li><a href="?mod=html&code=privacy">隐私保护</a></li>
						<li><a href="?mod=html&code=join">加入我们</a></li>
						<li><a href="?mod=html&code=terms">用户协议</a></li>
				</ul>			
          </div>
          
        </div>
        
      </div>
</div>
<div class="container-layout margin-big-bottom">

  <div class="border-top padding-top">
    <div class="text-center height-big">
      {conf copyright}&nbsp;&nbsp;<a href='http://www.miibeian.gov.cn/' target="_blank" style="color:#666;">{conf icp}</a> 
    </div>
    <div class="text-center footBottom_list">
      <ul class="nav nav-inline">
       
                        <li>
                            <div class="two"><a href='javascript:void(0);' ></a></div>
                        </li>


                        <li>
                            <div class="three"><a href="javascript:void(0);" ></a></div>
                        </li>
                        <li>
                            <div class="four"><a href="javascript:void(0);"></a></div>
                        </li>
                        <li>
                            <div class="five"><a href="http://www.chinabank.com.cn/"  target="_blank"></a></div>
                        </li>
                        <li>
                            <div class="six"><a href="http://www.alipay.com" target="_blank"></a></div>
                        </li>
      </ul>
    </div>
    <div class="text-center height-big"><!--{conf tongji}--></div>
  </div>

</div>
<!-- foot end -->
<!-- 侧边代码开始 -->
<div id="tbox">
	<a class="pinglun ddc" href="#ddc"></a>
    <a class="pinglun zxc" href="#zxc"></a>
    <a class="pinglun kuche" href="#kuche"></a>
    <a class="pinglun tc" href="#tongche"></a>
	<a class="pinglun ddqc" href="#ddqc"></a>
	<a class="pinglun peijian" href="#peijian"></a>
	<a class="pinglun" id="gotop" href="javascript:void(0)"></a>
</div>
<!-- 代码结束 -->  
{if ini('ui.igos.lazyimager')}
{~ui('loader')->js('@jquery.lazyload')}
<script type="text/javascript">
$("img.lazy").lazyload({effect:'fadeIn',skip_invisible:false});
function b(){
	h = $(window).height();
	t = $(document).scrollTop();
	if(t > h){
		$('#gotop').fadeIn();
	}else{
		$('#gotop').fadeOut();
	}
}
$(document).ready(function(e) {
	b();
	pm_width = $(window).width();
	if(pm_width<=1200) {$("#tbox").hide()};
	$('#gotop').click(function(){
		$('html, body').animate({scrollTop: 0},300);
	})
});
$(window).scroll(function(e){
	b();		
})
$(window).resize(function() {
	pm_width = $(window).width();
	if(pm_width<=1200){ 
		$("#tbox").hide();
	}else{
		$("#tbox").show();
	}
	
});

function header_closediv(type){
	if(type=='headererweima'){
		$("#"+type).hide();
	}

}
jQuery.rnd = {
	    stamp: function()
	    {
	        return '&timestamp='+(new Date()).getTime().toString();
	    }
	};
</script>
{/if}
<!--{~ui('pingfore')->html()}-->
</body>
</html>